package com.zxl.chatroomserver;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;

@SpringBootApplication
public class ChatroomserverApplication {

    public static void main(String[] args) {
        SpringApplication.run(ChatroomserverApplication.class, args);
//        ChatRoomServer server = null;
//        try {
//            server = new ChatRoomServer(2048);
//            new Thread(server).start();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }
        ChatRoomClient client=new ChatRoomClient("127.0.0.1",8080);
        new Thread(client).start();
    }
}
